package com.springboot.cloud.demos.entity.form;

import com.springboot.cloud.common.web.entity.form.BaseForm;
import com.springboot.cloud.demos.entity.po.MemberCard;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

@ApiModel
@Data
public class MemberCardForm extends BaseForm<MemberCard> {

    @NotBlank(message = "课程名称不能为空")
    @ApiModelProperty(value = "课程名称")
    private String title;
    private String recommend;
    @ApiModelProperty(value = "副标题描述")
    @NotBlank(message = "副标题不能为空")
    private String subtitle;

    private String id;
    private String content;
    private String cover;
    private String free;
    private BigDecimal originalPrice;
    private BigDecimal price;
    private Integer rate;
    private String express;
    private String type;
    private Integer dayCount;
}
